package com.zkzx.company.api.controller.menu.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author young Email:yanghui@zkraising.com
 * @description
 * @company 北京中科智兴物联科技有限公司 @版权所有
 * @since 2021年04月27日 15时38分
 */
@Builder
@Data
@ApiModel(value = "MenuVO", description = "菜单信息")
public class MenuVO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 活动ID
     */
    @ApiModelProperty(value = "菜单ID", example = "1")
    private Integer id;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称", example = "企业管理")
    private String name;

    /**
     * 菜单code
     */
    @ApiModelProperty(value = "菜单code", example = "company")
    private String code;

    /**
     * 请求路径
     */
    @ApiModelProperty(value = "请求路径", example = "/companies")
    private String path;

    /**
     * 请求方法
     */
    @ApiModelProperty(value = "请求方法", example = "GET")
    private String method;

    /**
     * 菜单上级
     */
    @ApiModelProperty(value = "菜单上级", example = "1")
    private Integer parentId;

    /**
     * 菜单层级
     */
    @ApiModelProperty(value = "菜单层级", example = "1")
    private Integer level;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标", example = "house.png")
    private String icon;

    /**
     * 菜单层级
     */
    @ApiModelProperty(value = "子菜单")
    private List<MenuVO> childMenus;

}
